/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author LYS
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface MesScElectrovalence extends BasicModel<MesScElectrovalence> {
  hour?: number; // 时间
  bandType?: string; // 波段
  price?: number; // 电价
  standard?: string; // 座机费收取标准
}

export const mesScElectrovalenceList = (params?: MesScElectrovalence | any) =>
  defHttp.get<MesScElectrovalence>({ url: adminPath + '/report/mesScElectrovalence/list', params });

export const mesScElectrovalenceListData = (params?: MesScElectrovalence | any) =>
  defHttp.post<Page<MesScElectrovalence>>({ url: adminPath + '/report/mesScElectrovalence/listData', params });

export const mesScElectrovalenceForm = (params?: MesScElectrovalence | any) =>
  defHttp.get<MesScElectrovalence>({ url: adminPath + '/report/mesScElectrovalence/form', params });

export const mesScElectrovalenceSave = (params?: any, data?: MesScElectrovalence | any) =>
  defHttp.postJson<MesScElectrovalence>({ url: adminPath + '/report/mesScElectrovalence/save', params, data });

export const mesScElectrovalenceDelete = (params?: MesScElectrovalence | any) =>
  defHttp.get<MesScElectrovalence>({ url: adminPath + '/report/mesScElectrovalence/delete', params });
